<template>
  <el-card shadow="never" class="aui-card--fill">
    <div class="mod-demo__xlscirclepri}">
      <el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
        <el-form-item>
          <el-input v-model="dataForm.mobile" placeholder="手机号" clearable></el-input>
        </el-form-item>
        <el-form-item>
          <el-button @click="getDataList()">{{ $t('query') }}</el-button>
        </el-form-item>
      </el-form>
      <el-table v-loading="dataListLoading" :data="dataList" border @selection-change="dataListSelectionChangeHandle" style="width: 100%;">
<!--        <el-table-column type="selection" header-align="center" align="center" width="50"></el-table-column>-->
        <!-- <el-table-column prop="id" label="" header-align="center" align="center"></el-table-column> -->
        <el-table-column prop="username" label="会员名称" header-align="center" align="center"></el-table-column>
        <el-table-column prop="mobile" label="会员手机号" header-align="center" align="center"></el-table-column>
<!--        <el-table-column prop="circlePeopleNum" label="圈子人数" header-align="center" align="center"></el-table-column>-->
        <el-table-column prop="createTime" label="创建时间" header-align="center" align="center"></el-table-column>
<!--        <el-table-column prop="isDel" label="是否删除 1 是 2 否" header-align="center" align="center"></el-table-column>-->
        <el-table-column :label="$t('handle')" fixed="right" header-align="center" align="center" width="150">
          <template slot-scope="scope">
            <el-button type="text" size="small" @click="viewHandle(scope.row.topUserId)">会员详情</el-button>
          </template>
        </el-table-column>
      </el-table>
      <el-pagination
        :current-page="page"
        :page-sizes="[10, 20, 50, 100]"
        :page-size="limit"
        :total="total"
        layout="total, sizes, prev, pager, next, jumper"
        @size-change="pageSizeChangeHandle"
        @current-change="pageCurrentChangeHandle">
      </el-pagination>
      <view-info v-if="viewVisible" ref="viewInfo" @refreshDataList="getDataList"></view-info>
    </div>
  </el-card>
</template>

<script>
import mixinViewModule from '@/mixins/view-module'
import viewInfo from './myEcharts'
export default {
  mixins: [mixinViewModule],
  data () {
    return {
      mixinViewModuleOptions: {
        getDataListURL: '/demo/xlscirclepri/page',
        getDataListIsPage: true,
        exportURL: '/demo/xlscirclepri/export',
        deleteURL: '/demo/xlscirclepri',
        deleteIsBatch: true
      },
      dataForm: {
        mobile: ''
      }
    }
  },
  components: {
    viewInfo
  }
}
</script>
